// eslint-disable-next-line
import {
  UserLayout,
  BasicLayout,
  RouteView,
  BlankLayout,
  PageView
} from '@/layouts'
// import { bxAnaalyse } from '@/core/icons'

export const asyncRouterMap = [{
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: {
      title: '首页'
    },
    redirect: '/box',
    children: [
      {
        path: '/stats',
        name: 'statsIndex',
        redirect: '/stats/index',
        component: PageView,
        meta: {
          title: '统计总览',
          keepAlive: true,
          icon: 'desktop'
        },
        hideChildrenInMenu: true,
        children: [
          {
            path: '/stats/index',
            name: 'statsIndex_zl',
            component: () => import('@/views/stats/IndexStats'),
            meta: {
              title: '统计总览',
              keepAlive: false
            }
          }
        ]
      },
      // home
      // {
      //   path: '/',
      //   name: 'home',
      //   component: RouteView,
      //   meta: { title: '首页', keepAlive: true, icon: 'home' },
      //   hideChildrenInMenu: true,
      //   redirect: '/',
      //   children: [
      //     {
      //       path: '/',
      //       name: 'Home',
      //       component: () => import('@/views/home/Index'),
      //       meta: { title: '首页', keepAlive: true }
      //     }
      //   ]
      // },
      // 抽奖盒子
      {
        path: '/ip',
        name: 'IP',
        component: PageView,
        hideChildrenInMenu: false,
        meta: {
          title: 'IP/分类、版块、角标',
          keepAlive: true,
          icon: 'robot'
        },
        redirect: '/ip/index',
        children: [{
            path: '/ip/index',
            name: 'IPList',
            component: () => import('@/views/category/List'),
            props: {
              isShowThumb: true,
              type: 'ip',
              title: 'IP'
            },
            meta: {
              title: 'IP管理',
              keepAlive: true
            }
          },
          {
            path: '/character',
            name: 'CharacterList',
            component: () => import('@/views/category/List'),
            props: {
              isShowThumb: true,
              type: 'character',
              subCategory: true
            },
            meta: {
              title: '人物管理',
              keepAlive: true
            }
          },
          {
            path: '/category',
            name: 'CategoryList',
            component: () => import('@/views/category/List'),
            props: {
              isShowThumb: true,
              type: 'normal',
              subCategory: true
            },
            meta: {
              title: '分类管理',
              keepAlive: true
            }
          },
          {
            path: '/block',
            name: 'BlockCategoryList',
            component: () => import('@/views/category/List'),
            props: {
              isShowThumb: false,
              type: 'block',
              subCategory: false,
              title: '版块',
              tips: '可创建不同的版块（例如：首页商品列表、 商城页推荐列表）并将商品或活动绑定到该版块中'
            },
            meta: {
              title: '版块管理',
              keepAlive: true
            }
          },
          {
            path: '/image-tag',
            name: 'ImageTagList',
            component: () => import('@/views/category/ImageTagList'),
            props: {
              isShowThumb: true,
              type: 'normal',
              subCategory: true
            },
            meta: {
              title: '角标管理',
              keepAlive: true
            }
          },
          {
            path: '/image/history/tag',
            name: 'ImageCategoryList',
            component: () => import('@/views/category/List'),
            hidden: true,
            props: {
              isShowThumb: false,
              type: 'image',
              subCategory: false
            },
            meta: {
              title: '图片分类列表',
              keepAlive: true
            }
          },
        ]
      },
      // {
      //   path: '/deck',
      //   name: 'deck',
      //   redirect: '/deck/decklist',
      //   component: PageView,
      //   meta: {
      //     title: '卡组管理',
      //     keepAlive: true,
      //     icon: 'star'
      //   },
      //   hideChildrenInMenu: false,
      //   children: [{
      //       path: '/deck/decklist',
      //       name: 'deckList',
      //       component: () => import('@/views/deck/deckList'),
      //       meta: {
      //         title: '卡组管理',
      //         keepAlive: false
      //       }
      //     },
      //   {
      //     path: '/deck/deckExchange',
      //       name: 'deckExchange',
      //       component: () => import('@/views/deck/deckExchange'),
      //       meta: {
      //         title: '卡组交换记录',
      //         keepAlive: false
      //       }
      //   },{
      //     path: '/deck/deckCollection',
      //       name: 'deckCollection',
      //       component: () => import('@/views/deck/deckCollection'),
      //       meta: {
      //         title: '卡组收藏记录',
      //         keepAlive: false
      //       }
      //   }]
      // },
      {
        path: '/box',
        name: 'Box',
        redirect: '/box',
        component: PageView,
        meta: {
          title: '盲盒管理',
          keepAlive: true,
          icon: 'gift'
        },
        hideChildrenInMenu: true,
        children: [
          {
            path: '/box',
            name: 'Box',
            component: () => import('@/views/box/BoxList'),
            meta: {
              title: '盲盒列表',
              keepAlive: true
            }
          },
          {
            path: '/box/setting',
            name: 'BoxSetting',
            component: () => import('@/views/box/Setting'),
            hidden: true,
            meta: {
              title: '盲盒全局设置',
              keepAlive: false
            }
          },
          {
            path: '/rank/list',
            name: 'Box',
            component: () => import('@/views/rank/RankList'),
            meta: {
              title: '隐藏款排行榜模拟数据列表',
              keepAlive: true
            }
          },
          {
            path: '/rank/edit',
            name: 'Box',
            component: () => import('@/views/rank/EditRank'),
            meta: {
              title: '隐藏款排行榜模拟数据更新',
              keepAlive: true
            }
          }
        ]
      },
      // 商城
      {
        path: '/shop',
        name: 'shop',
        redirect: '/shop/productList',
        component: PageView,
        meta: {
          title: '商城管理',
          keepAlive: true,
          icon: 'shopping'
        },
        hideChildrenInMenu: true,
        children: [{
            path: '/shop/productList',
            name: 'productList',
            component: () => import('@/views/shop/ProductList'),
            meta: {
              title: '商品列表',
              keepAlive: false
            }
          },
          {
            path: '/product/release',
            name: 'releaseProduct',
            // hidden: true,
            component: () => import('@/views/shop/ReleaseProduct'),
            meta: {
              title: '发布商品',
              keepAlive: true
            }
          },
          {
            path: '/products/edit/:uuid',
            name: 'EditProduct',
            hidden: true,
            component: () => import('@/views/shop/EditProduct'),
            meta: {
              title: '编辑商品',
              // keepAlive: true
            }
          },
          {
            path: '/products/category',
            name: 'Category',
            component: () => import('@/views/shop/Category'),
            meta: {
              title: '分类管理',
              keepAlive: true
            }
          }
        ]
      },
      // orders
      {
        path: '/orders',
        name: 'orders',
        component: PageView,
        meta: {
          title: '订单管理',
          keepAlive: true,
          icon: 'profile'
        },
        hideChildrenInMenu: true,
        redirect: '/orders/index',
        children: [{
          path: '/orders/index',
          name: 'OrderList',
          component: () => import('@/views/orders/List'),
          props: {
            type: 'box'
          },
          meta: {
            title: '订单管理',
            keepAlive: true
          }
        }]
      },
      {
        path: '/storage',
        name: 'Storage',
        component: PageView,
        meta: {
          title: '仓储管理',
          keepAlive: true,
          icon: 'solution'
        },
        hideChildrenInMenu: false,
        redirect: '/storage/list',
        children: [{
            path: '/storage/list',
            name: 'storage_list',
            component: () => import('@/views/storage/list'),
            meta: {
              title: '需求管理',
              keepAlive: true
            }
          },
          {
            path: '/storage/buy/total',
            name: 'storage_buy_total',
            component: () => import('@/views/storage/buy_total'),
            meta: {
              title: '采购单-统计',
              keepAlive: true
            }
          },          
          {
            path: '/storage/buy',
            name: 'storage_buylist',
            component: () => import('@/views/storage/buylist'),
            meta: {
              title: '采购单-明细管理',
              keepAlive: true
            }
          },
          {
            path: '/storage/records',
            name: 'storage_records',
            component: () => import('@/views/storage/recordlist'),
            meta: {
              title: '流水记录',
              keepAlive: true
            }
          },
          {
            path: '/storage/tongji/total',
            name: 'storage_tongji_total',
            component: () => import('@/views/storage/tongji_total'),
            meta: {
              title: '采购员-汇总统计',
              keepAlive: true
            }
          },          
          // {
          //   path: '/storage/tongji',
          //   name: 'storage_tongji',
          //   component: () => import('@/views/storage/tongjilist'),
          //   meta: {
          //     title: '采购员-每日统计',
          //     keepAlive: true
          //   }
          // },
        ]
      },
      // 盒柜仓库
      {
        path: '/package-sku',
        name: 'PackageSku',
        component: PageView,
        meta: {
          title: '盒柜仓库',
          keepAlive: true,
          icon: 'container'
        },
        hideChildrenInMenu: true,
        redirect: '/package-sku/list',
        children: [{
          path: '/package-sku/list',
          name: 'PackageSkuList',
          component: () => import('@/views/packageSku/list'),
          meta: {
            title: '盒柜仓库',
            keepAlive: true
          }
        }]
      },
      // 弹幕设置
      {
        path: '/danmu',
        name: 'DanmuList',
        component: PageView,
        meta: {
          title: '弹幕列表',
          keepAlive: true,
          icon: 'container'
        },
        hideChildrenInMenu: true,
        redirect: '/danmu/list',
        children: [{
          path: '/danmu/list',
          name: 'DanmuList_lb',
          component: () => import('@/views/danmu/List'),
          meta: {
            title: '弹幕列表',
            keepAlive: true
          }
        }]
      },
      // 交易市场
      {
        path: '/market',
        name: 'Market',
        component: PageView,
        meta: {
          title: '挂售管理',
          keepAlive: true,
          icon: 'container'
        },
        // hideChildrenInMenu: true,
        redirect: '/market/resale/list',
        children: [
          {
            path: '/market/setting',
            name: 'MarketSetting',
            component: () => import('@/views/market/Setting'),
            hidden: false,
            meta: {
              title: '基础设置',
              keepAlive: false
            }
          },
          {
            path: '/market/tenant/list',
            name: 'TenantList',
            component: () => import('@/views/market/tenantList'),
            meta: {
              title: '商户列表',
              keepAlive: true
            }
          },
          {
            path: '/market/resale/list',
            name: 'MarketList',
            component: () => import('@/views/market/resaleList'),
            meta: {
              title: '挂售商品(自定价)',
              keepAlive: true
            },
            props: {
              isAutoMatch: false
            },
          },
          {
            path: '/market/resale/list/2',
            name: 'MarketList2',
            component: () => import('@/views/market/resaleList'),
            meta: {
              title: '挂售商品(建议价)',
              keepAlive: true
            },
            props: {
              isAutoMatch: true
            },
          },
        ]
      },
      // 置换管理
      {
        path: '/exchange',
        name: 'Exchange',
        component: PageView,
        meta: {
          title: '置换管理',
          keepAlive: true,
          icon: 'container'
        },
        // hideChildrenInMenu: true,
        redirect: '/exchange/setting',
        children: [
          {
            path: '/exchange/setting',
            name: 'ExchangeSetting',
            component: () => import('@/views/exchange/Setting'),
            hidden: false,
            meta: {
              title: '基础设置',
              keepAlive: false
            }
          },
          {
            path: '/exchange/list',
            name: 'ExchangeList',
            component: () => import('@/views/exchange/List'),
            meta: {
              title: '置换记录',
              keepAlive: true
            },
            props: {
              isAutoMatch: true
            },
          },
        ]
      },
      {
        path: '/activity',
        name: 'activity',
        redirect: '/activity/list',
        component: PageView,
        meta: {
          title: '活动管理',
          keepAlive: true,
          icon: 'link'
        },
        hideChildrenInMenu: false,
        children: [
          {
            path: '/box',
            name: 'Box',
            component: () => import('@/views/box/BoxList'),
            meta: {
              title: '盲盒活动',
              keepAlive: true
            }
          },
          {
            path: '/box/setting',
            name: 'BoxSetting',
            component: () => import('@/views/box/Setting'),
            hidden: true,
            meta: {
              title: '盲盒全局设置',
              keepAlive: false
            }
          },
          // {
          //   path: '/rank/list',
          //   name: 'Box',
          //   component: () => import('@/views/rank/RankList'),
          //   meta: {
          //     title: '隐藏款排行榜模拟数据列表',
          //     keepAlive: true
          //   }
          // },
          // {
          //   path: '/rank/edit',
          //   name: 'Box',
          //   component: () => import('@/views/rank/EditRank'),
          //   meta: {
          //     title: '隐藏款排行榜模拟数据更新',
          //     keepAlive: true
          //   }
          // }
          {
            path: '/activity/seckill/list',
            name: 'SeckillList',
            component: () => import('@/views/activity/Seckill/List'),
            props: {
              type: 'seckill'
            },
            meta: {
              title: '秒杀活动',
              keepAlive: false
            }
          },
          {
            path: '/activity/chouguji/list',
            name: 'chouguji',
            component: () => import('@/views/activity/chouguji/list'),
            meta: {
              title: '抽谷机',
              keepAlive: false
            }
          },
          // {
          //   path: '/activity/chouguji/setting',
          //   name: 'ChougujiSetting',
          //   component: () => import('@/views/activity/chouguji/Setting'),
          //   hidden: true,
          //   meta: {
          //     title: '抽谷机全局设置',
          //     keepAlive: false
          //   }
          // },
          {
            path: '/activity/lottery/list',
            name: 'LotteryList',
            component: () => import('@/views/activity/Lottery/List'),
            meta: {
              title: '抽奖活动',
              keepAlive: false
            }
          },
          {
            path: '/activity/egg-lottery/list',
            name: 'EggLotteryList',
            component: () => import('@/views/activity/EggLottery/List'),
            meta: {
              title: '扭蛋机活动',
              keepAlive: false
            }
          },
          {
            path: '/activity/yi-fan-shang',
            name: 'YiFanShangList',
            component: () => import('@/views/activity/YiFanShang/List'),
            meta: {
              title: '一番赏',
              keepAlive: false
            }
          },
          {
            path: '/activity/pei-la-shang',
            name: 'PeiLaShangList',
            component: () => import('@/views/activity/PeiLaShang/List'),
            meta: {
              title: '佩拉赏',
              keepAlive: false
            }
          },
          {
            path: '/activity/tuanzhan',
            name: 'TuanZhanList',
            component: () => import('@/views/activity/TuanZhan/List'),
            meta: {
              title: '大乱斗',
              keepAlive: false
            }
          },
          {
            path: '/activity/hun-li-shang',
            name: 'HunLiShangList',
            component: () => import('@/views/activity/HunLiShang/List'),
            meta: {
              title: '魂力赏',
              keepAlive: false
            }
          },
          {
            path: '/activity/fudai/list',
            name: 'FudaiList',
            component: () => import('@/views/activity/Fudai/List'),
            meta: {
              title: '福袋活动',
              keepAlive: false
            }
          },
          {
            path: '/activity/renyi/list',
            name: 'RenyiList',
            component: () => import('@/views/activity/Renyi/List'),
            meta: {
              title: '任意门',
              keepAlive: false
            }
          },
          {
            path: '/activity/maoxian/list',
            name: 'MaoxianList',
            component: () => import('@/views/activity/Maoxian/List'),
            meta: {
              title: '冒险岛',
              keepAlive: false
            }
          },
          {
            path: '/activity/kapaishe/list',
            name: 'KaPaiSheList',
            component: () => import('@/views/activity/KaPaiShe/List'),
            meta: {
              title: '卡牌社',
              keepAlive: false
            }
          },          
           {
            path: '/activity/shangdai/list',
            name: 'ShangdaiList',
            component: () => import('@/views/activity/Shangdai/List'),
            meta: {
              title: '赏袋活动',
              keepAlive: false
            }
          },
          // {
          //   path: '/activity/rotateLottery/list',
          //   name: 'rotateLotteryList',
          //   component: () => import('@/views/activity/RotateLottery/List'),
          //   meta: {
          //     title: '大转盘',
          //     keepAlive: false
          //   }
          // },
          // {
          //   path: '/activity/zhuli/list',
          //   name: 'ZhuliList',
          //   component: () => import('@/views/activity/Zhuli/List'),
          //   meta: {
          //     title: '助力活动',
          //     keepAlive: false
          //   }
          // },
          {
            path: '/activity/jika',
            name: 'JikaList',
            component: () => import('@/views/activity/Jika/List'),
            meta: {
              title: '集卡活动',
              keepAlive: false
            }
          },
          {
            path: '/activity/jika/setting',
            name: 'JikaSetting',
            component: () => import('@/views/activity/Jika/Setting'),
            hidden: true,
            meta: {
              title: '集卡活动设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/fudai/setting',
            name: 'FudaiSetting',
            component: () => import('@/views/activity/Fudai/Setting'),
            hidden: true,
            meta: {
              title: '福袋设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/renyi/setting',
            name: 'RenyiSetting',
            component: () => import('@/views/activity/Renyi/Setting'),
            hidden: true,
            meta: {
              title: '任意门设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/maoxian/setting',
            name: 'MaoxianSetting',
            component: () => import('@/views/activity/Maoxian/Setting'),
            hidden: true,
            meta: {
              title: '冒险岛设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/kapaishe/setting',
            name: 'KaPaiSheSetting',
            component: () => import('@/views/activity/KaPaiShe/Setting'),
            hidden: true,
            meta: {
              title: '卡牌社设置',
              keepAlive: false
            }
          },          
          {
            path: '/activity/zhuli/setting',
            name: 'ZhuliSetting',
            component: () => import('@/views/activity/Zhuli/Setting'),
            hidden: true,
            meta: {
              title: '助力设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/yifanshang/setting',
            name: 'YiFanShangSetting',
            component: () => import('@/views/activity/YiFanShang/Setting'),
            hidden: true,
            meta: {
              title: '一番赏设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/peilashang/setting',
            name: 'PeiLaShangSetting',
            component: () => import('@/views/activity/PeiLaShang/Setting'),
            hidden: true,
            meta: {
              title: '佩拉赏设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/tuanzhan/setting',
            name: 'TuanZhanSetting',
            component: () => import('@/views/activity/TuanZhan/Setting'),
            hidden: true,
            meta: {
              title: '大乱斗设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/hunlishang/setting',
            name: 'HunLiShangSetting',
            component: () => import('@/views/activity/HunLiShang/Setting'),
            hidden: true,
            meta: {
              title: '魂力设置',
              keepAlive: false
            }
          },
          {
            path: '/activity/egg-lottery/setting',
            name: 'EggLotterySetting',
            component: () => import('@/views/activity/EggLottery/Setting'),
            hidden: true,
            meta: {
              title: '扭蛋机设置',
              keepAlive: false
            }
          }
        ]
      },
      {
        path: '/pages',
        name: 'pages',
        component: PageView,
        meta: {
          title: '自定义页面',
          keepAlive: true,
          icon: 'block'
        },
        hideChildrenInMenu: true,
        redirect: '/pages/index',
        children: [{
          path: '/pages/index',
          name: 'Page',
          component: () => import('@/views/page/PageList'),
          meta: {
            title: '自定义页面列表',
            keepAlive: true
          }
        }]
      },
      {
        path: '/presell',
        name: 'presell',
        component: PageView,
        meta: {
          title: '预售日历',
          keepAlive: true,
          icon: 'number'
        },
        hideChildrenInMenu: true,
        redirect: '/presell/list',
        children: [{
          path: '/presell/list',
          name: 'PresellList',
          component: () => import('@/views/presell/PresellList'),
          meta: {
            title: '预售日历',
            keepAlive: true
          }
        }]
      },
      {
        path: '/code',
        name: 'code',
        component: PageView,
        meta: {
          title: '兑换码',
          keepAlive: true,
          icon: 'solution'
        },
        hideChildrenInMenu: false,
        redirect: '/code/index',
        children: [{
            path: '/code/index',
            name: 'Code_gl',
            component: () => import('@/views/code/CodeList'),
            meta: {
              title: '兑换码管理',
              keepAlive: true
            }
          },
          {
            path: '/code/record',
            name: 'CodeRecord',
            component: () => import('@/views/code/CodeRecordList'),
            meta: {
              title: '兑换记录',
              keepAlive: true
            }
          },
        ]
      },
      // users
      {
        path: '/users',
        name: 'users',
        component: PageView,
        meta: {
          title: '用户管理',
          keepAlive: true,
          icon: 'team'
        },
        hideChildrenInMenu: false,
        redirect: '/users/index',
        children: [
          {
            path: '/result/success',
            name: 'best_yunyin',
            component: () => import('@/views/userList/UserList'),
            hidden: true, 
            meta: {
              title: '高级运营权限',
            }
          },
          {
            path: '/users/index',
            name: 'Users_lb',
            component: () => import('@/views/userList/UserList'),
            meta: {
              title: '用户列表',
              keepAlive: true
            }
          },
          {
            path:'users/index5',
            name:'Users_lb5',
            component:()=>import ('@/views/userList/UserList5'),
            meta:{
              title:'社群用户列表',
              keepAlive:true
            }
          },
          {
            path: '/users/index2',
            name: 'Users_lb2',
            component: () => import('@/views/userList/UserList2'),
            meta: {
              title: '微广用户列表',
              keepAlive: true
            }
          },
          {
            path: '/users/index4',
            name: 'Users_lb4',
            component: () => import('@/views/userList/UserList4'),
            meta: {
              title: '抖广用户列表',
              keepAlive: true
            }
          },
          {
            path: '/users/index3',
            name: 'Users_lb3',
            component: () => import('@/views/userList/UserList3'),
            meta: {
              title: '机器人用户列表',
              keepAlive: true
            }
          },
          {
            path: '/user/phonelog',
            name: 'Phonelog',
            component: () => import('@/views/userList/Phonelog'),
            meta: {
              title: '手机号修改记录',
              keepAlive: true
            }
          },
          {
            path: '/user/stats',
            name: 'UserStats',
            component: () => import('@/views/userList/UserStats'),
            meta: {
              title: '消费统计',
              keepAlive: true
            }
          },
          {
            path: '/user/wxUserMonthPay',
            name: 'WxUserMonthPay',
            component: () => import('@/views/userList/WxUserMonthPay'),
            meta: {
              title: '广告用户营收/利润',
              keepAlive: true
            }
          },          
          {
            path: '/user/stats2',
            name: 'UserStats2',
            component: () => import('@/views/userList/UserStats2'),
            meta: {
              title: '实付排行',
              keepAlive: true
            }
          },
          {
            path: '/user/stats3',
            name: 'UserStats3',
            component: () => import('@/views/userList/UserStats3'),
            meta: {
              title: '销售排行',
              keepAlive: true
            }
          },
          {
            path: '/stats/top-user',
            name: 'TopUserStats',
            component: () => import('@/views/stats/TopUserStats'),
            meta: {
              title: 'top50-用户消费趋势',
              keepAlive: true
            }
          },          
          {
            path: '/user/onlineStats',
            name: 'UserOnlineStats',
            component: () => import('@/views/userList/UserOnlineStats'),
            meta: {
              title: '每日实时统计',
              keepAlive: true
            }
          },
          {
            path: '/user/qygroups',
            name: 'UserQyGroup',
            component: () => import('@/views/userList/UserQyGroupList'),
            meta: {
              title: '企业微信群',
              keepAlive: true
            }
          },
          {
            path: '/user/groups',
            name: 'UserGroup',
            component: () => import('@/views/userList/UserGroupList'),
            meta: {
              title: '用户群',
              keepAlive: true
            }
          },
          {
            path: '/user/medal',
            name: 'UserMedal',
            component: () => import('@/views/userList/UserMedalList'),
            meta: {
              title: '勋章列表',
              keepAlive: true
            }
          },
          {
            path: '/user/activity',
            name: 'UserActivity',
            component: () => import('@/views/userList/UserActivityList'),
            meta: {
              title: '专题活动',
              keepAlive: true
            }
          },
          {
            path: '/vips',
            name: 'VipList',
            component: () => import('@/views/vip/VipList'),
            meta: {
              title: 'VIP列表',
              keepAlive: true
            }
          },
          {
            path: '/vip/sku/list',
            name: 'VipSkuList',
            component: () => import('@/views/vip/VipSkuList'),
            meta: {
              title: 'VIP套餐',
              keepAlive: true
            }
          },
          {
            path: '/task-level/list',
            name: 'TaskLevelList',
            component: () => import('@/views/task/TaskLevelList'),
            meta: {
              title: '成长等级',
              keepAlive: true
            }
          },
          {
            path: '/task-list/list',
            name: 'TaskListList',
            component: () => import('@/views/task/TaskListList'),
            meta: {
              title: '成长任务',
              keepAlive: true
            }
          },
          {
            path: '/taskday/list',
            name: 'TaskdayList',
            component: () => import('@/views/task/TaskdayList'),
            meta: {
              title: '每日任务',
              keepAlive: true
            }
          },
          {
            path: '/visitors',
            name: 'visitors',
            component: () => import('@/views/visitors/Index'),
            meta: {
              title: '浏览记录',
              keepAlive: true
            }
          },
          {
            path: '/visitor/area',
            name: 'visitorArea',
            component: () => import('@/views/visitors/AreaCount'),
            meta: {
              title: '情报工具',
              keepAlive: true
            }
          },
          {
            path: '/agent/luckList',
            name: 'luckList',
            component: () => import('@/views/agent/luckList'),
            meta: {
              title: '欧气值记录',
              keepAlive: true
            }
          },
        ]
      },
      {
        path: '/topic',
        name: 'topic',
        redirect: '/topic/list',
        component: PageView,
        meta: {
          title: '论坛管理',
          keepAlive: true,
          icon: 'deployment-unit'
        },
        hideChildrenInMenu: false,
        children: [{
            path: '/topic/list',
            name: 'Topic_gl',
            component: () => import('@/views/topic/TopicList'),
            meta: {
              title: '帖子管理',
              keepAlive: false
            }
          },
          {
            path: '/topic-group/list',
            name: 'TopicGroup',
            component: () => import('@/views/topic/GroupList'),
            meta: {
              title: '圈子管理',
              keepAlive: false
            }
          },
          {
            path: '/topic-tag/list',
            name: 'TopicTag',
            component: () => import('@/views/topic/TagList'),
            meta: {
              title: '话题管理',
              keepAlive: false
            }
          }
        ]
      },
      {
        path: '/redpack',
        name: 'Redpack',
        component: PageView,
        meta: {
          title: '红包模块',
          keepAlive: true,
          icon: 'pay-circle'
        },
        hideChildrenInMenu: false,
        redirect: '/redpack/withdraw',
        children: [
          {
            path: '/redpack/redpack-sku',
            name: 'RedpackSku',
            component: () => import('@/views/redpack/RedpackSku'),
            meta: {
              title: '余额充值套餐',
              keepAlive: true
            }
          },
          {
            path: '/redpack/setting',
            name: 'RedpackSetting',
            component: () => import('@/views/redpack/Setting'),
            meta: {
              title: '红包设置',
              keepAlive: true
            }
          },
          {
            path: '/redpack/records',
            name: 'RedpackRecords',
            component: () => import('@/views/redpack/RecordList'),
            meta: {
              title: '流水记录',
              keepAlive: true
            }
          },
          {
            path: '/redpack/shifu',
            name: 'Shifu',
            component: () => import('@/views/redpack/ShifuList'),
            meta: {
              title: '实付记录',
              keepAlive: true
            }
          },
          {
            path: '/redpack/withdraw',
            name: 'RedpackWithdraw',
            component: () => import('@/views/redpack/withdraw'),
            meta: {
              title: '提现记录',
              keepAlive: true
            }
          },
          {
            path: '/redpack/revenue',
            name: 'RedpackRevenue',
            component: () => import('@/views/redpack/Revenue'),
            meta: {
              title: '营收记录',
              keepAlive: true
            }
          },
          {
            path: '/redpack/daywithdraw',
            name: 'DayWithdraw',
            component: () => import('@/views/redpack/Daywithdraw'),
            meta: {
              title: '当日收益',
              keepAlive: true
            }
          },
          {
            path: '/redpack/bank-card/list',
            name: 'BankCardList',
            component: () => import('@/views/redpack/BankCardList'),
            meta: {
              title: '银行卡管理',
              keepAlive: true
            }
          },
          {
            path: '/redpack/ada-bank-card/list',
            name: 'AdaBankCardList',
            component: () => import('@/views/redpack/AdaBankCardList'),
            meta: {
              title: '汇付-银行卡管理',
              keepAlive: true
            }
          }
        ]
      },
      {
        path: '/score',
        name: 'Score',
        component: PageView,
        meta: {
          title: '积分模块',
          keepAlive: true,
          icon: 'block'
        },
        hideChildrenInMenu: false,
        redirect: '/score/score-sku',
        children: [
          {
            path: '/score/score-sku',
            name: 'ScoreSku',
            component: () => import('@/views/score/ScoreSku'),
            meta: {
              title: '积分充值套餐',
              keepAlive: true
            }
          },
          {
          path: '/score/setting',
          name: 'ScoreSetting',
          component: () => import('@/views/score/GlobalSetting'),
            meta: {
              title: '积分设置',
              keepAlive: true
            }
          }, {
            path: '/score/records',
            name: 'ScoreRecords',
            component: () => import('@/views/score/RecordList'),
            meta: {
              title: '积分流水记录',
              keepAlive: true
            }
          },
          {
            path: '/score-sku/setting',
            name: 'ScoreSkuSetting',
            component: () => import('@/views/score/ScoreSkuSetting'),
            hidden: true,
            meta: {
              title: '积分充值设置',
              keepAlive: false
            }
          },
        ]
      },
      {
        path: '/magicPoint',
        name: 'MagicPoint',
        component: PageView,
        meta: {
          title: '魔力值模块',
          keepAlive: true,
          icon: 'block'
        },
        hideChildrenInMenu: false,
        redirect: '/magicPoint/setting',
        children: [
          {
          path: '/magicPoint/setting',
          name: 'MagicPointSetting',
          component: () => import('@/views/magicPoint/MagicPointSetting'),
            meta: {
              title: '魔力值/UR榜单设置',
              keepAlive: true
            }
          }, {
            path: '/magicPoint/records',
            name: 'MagicPointRecords',
            component: () => import('@/views/magicPoint/RecordList'),
            meta: {
              title: '流水记录',
              keepAlive: true
            }
          }
        ]
      },
      {
        path: '/score_redpack',
        name: 'Score_Redpack',
        component: PageView,
        meta: {
          title: '赏包模块',
          keepAlive: true,
          icon: 'block'
        },
        hideChildrenInMenu: false,
        redirect: '/score_redpack/list',
        children: [
          {
            path: '/score_redpack/list',
            name: 'ScoreRedpackList',
            component: () => import('@/views/score_redpack/List'),
            meta: {
              title: '赏包列表',
              keepAlive: true
            }
          },
          {
            path: '/score_redpack/type',
            name: 'ScoreRedpackType',
            component: () => import('@/views/score_redpack/Type'),
            meta: {
              title: '赏包类型管理',
              keepAlive: true
            }
          },
          {
            path: '/money_redpack/list',
            name: 'MoneyRedpackList',
            component: () => import('@/views/money_redpack/List'),
            meta: {
              title: '红包列表',
              keepAlive: true
            }
          },
          {
            path: '/money_redpack/type',
            name: 'MoneyRedpackType',
            component: () => import('@/views/money_redpack/Type'),
            meta: {
              title: '红包类型管理',
              keepAlive: true
            }
          }
        ]
      },
      {
        path: '/chip',
        name: 'Chip',
        component: PageView,
        meta: {
          title: '碎片模块',
          keepAlive: true,
          icon: 'build'
        },
        hideChildrenInMenu: false,
        redirect: '/chip/list',
        children: [
          {
            path: '/chip/list',
            name: 'ChipList',
            component: () => import('@/views/chip/List'),
            meta: {
              title: '碎片列表',
              keepAlive: true
            }
          },
          {
            path: '/chip/setting',
            name: 'ChipSetting',
            component: () => import('@/views/chip/Setting'),
            hidden: true,
            meta: {
              title: '碎片设置',
              keepAlive: false
            }
          },
        ]
      },
      // coupons
      {
        path: '/coupons',
        name: 'coupons',
        component: PageView,
        meta: {
          title: '卡券道具',
          keepAlive: true,
          icon: 'red-envelope'
        },
        hideChildrenInMenu: false,
        redirect: '/coupons',
        children: [{
            path: '/card/list',
            name: 'CardList',
            component: () => import('@/views/card/CardList'),
            meta: {
              title: '道具卡管理',
              keepAlive: true
            }
          },
          {
            path: '/coupons',
            name: 'Coupons_list',
            component: () => import('@/views/coupons/Index'),
            meta: {
              title: '优惠券管理',
              keepAlive: true
            }
          },
          // {
          //   path: '/coupons/create',
          //   name: 'CouponCreate',
          //   hidden: true,
          //   component: () => import('@/views/coupons/CouponCreate'),
          //   meta: {
          //     title: '创建优惠券',
          //     keepAlive: true
          //   }
          // },
          // {
          //   path: '/coupons/edit/:uuid',
          //   name: 'CouponEdit',
          //   hidden: true,
          //   component: () => import('@/views/coupons/CouponEdit'),
          //   props: route => ({
          //     uuid: route.params.uuid
          //   }),
          //   meta: {
          //     title: '编辑优惠券',
          //     keepAlive: true
          //   }
          // }
        ]
      },
      {
        path: '/agent',
        name: 'Agent',
        component: PageView,
        meta: {
          title: '分销裂变',
          keepAlive: true,
          icon: 'apartment'
        },
        hideChildrenInMenu: false,
        redirect: '/agent/setting',
        children: [
          {
            path: '/agent/share',
            name: 'ShareSetting',
            component: () => import('@/views/agent/setting'),
            meta: {
            title: '邀请注册设置',
            keepAlive: true
            }
          },
          // {
          //   path: '/agent/brokerage',
          //   name: 'AgentBrokerage',
          //   component: () => import('@/views/agent/brokerage'),
          //   meta: {
          //   title: '分销佣金设置',
          //   keepAlive: true
          //   }
          // },
          {
            path: '/agent/level-list',
            name: 'AgentLevelList',
            component: () => import('@/views/agent/agentLevelList'),
            meta: {
              title: '分销员等级/佣金率',
              keepAlive: true
            }
          },
          {
            path: '/agent/list',
            name: 'AgentList',
            component: () => import('@/views/agent/agentList'),
            meta: {
            title: '分销员列表',
            keepAlive: true
            }
          },
          {
            path: '/agent/rank-list',
            name: 'AgentRankList',
            component: () => import('@/views/agent/rankList'),
            meta: {
            title: '分销排行榜',
            keepAlive: true
            }
          },
          {
            path: '/agent/list5',
            name: 'AgentList5',
            component: () => import('@/views/agent/agentList5'),
            meta: {
            title: '社群推广',
            keepAlive: true
            }
          },
          // {
          //   path: '/agent/leader-list',
          //   name: 'AgentLeaderList',
          //   component: () => import('@/views/agent/agentLeaderList'),
          //   meta: {
          //     title: '团队长列表',
          //     keepAlive: true
          //   }
          // },
          {
            path: '/agent/brokerage/list',
            name: 'BrokerageList',
            component: () => import('@/views/agent/brokerageList'),
            meta: {
            title: '佣金记录',
            keepAlive: true
            }
          },
          {
            path: '/agent/invite/record',
            name: 'InviteRecordList',
            component: () => import('@/views/agent/inviteRecord'),
            meta: {
            title: '邀请记录',
            keepAlive: true
            }
          },
          {
            path: '/agent/agent-log/list',
            name: 'agentLogList',
            component: () => import('@/views/agent/agentLog'),
            meta: {
              title: '升级送礼',
              keepAlive: true
            }
          }
        ]
      },
      {
        path: '/sys-setting',
        name: 'SysSetting',
        component: PageView,
        meta: {
          title: '系统设置',
          keepAlive: true,
          icon: 'tool'
        },
        hideChildrenInMenu: true,
        redirect: '/sys-setting/index',
        children: [{
            path: '/sys-setting/index',
            name: 'sys_index',
            component: () => import('@/views/sysSetting/Index'),
            meta: {
              title: '系统设置',
              keepAlive: true
            }
          },
        ]
      },
      {
        path: '/sys-adv',
        name: 'SysAdv',
        component: PageView,
        meta: {
          title: '微信广告管理',
          keepAlive: true,
          icon: 'solution'
        },
        hideChildrenInMenu: false,
        redirect: '/sys-adv/index',
        children: [{
            path: '/sys-adv/index',
            name: 'sys_adv',
            component: () => import('@/views/sysAdv/index'),
            meta: {
              title: '广告主',
              keepAlive: true
            }
          },
          {
            path: '/sys-adv/list',
            name: 'sys_adv_list',
            component: () => import('@/views/sysAdv/list'),
            meta: {
              title: '广告管理',
              keepAlive: true
            }
          },
          {
            path: '/sys-adv/action',
            name: 'sys_adv_action',
            component: () => import('@/views/sysAdv/action'),
            meta: {
              title: '数据源管理',
              keepAlive: true
            }
          },
        ]
      },
      {
        path: '/sys-advdy',
        name: 'SysAdvdy',
        component: PageView,
        meta: {
          title: '抖音广告管理',
          keepAlive: true,
          icon: 'solution'
        },
        hideChildrenInMenu: false,
        redirect: '/sys-advdy/index',
        children: [{
            path: '/sys-advdy/index',
            name: 'sys_advdy',
            component: () => import('@/views/sysAdvdy/index'),
            meta: {
              title: '广告主',
              keepAlive: true
            }
          },
          {
            path: '/sys-advdy/list',
            name: 'sys_advdy_list',
            component: () => import('@/views/sysAdvdy/list'),
            meta: {
              title: '广告管理',
              keepAlive: true
            }
          },
          // {
          //   path: '/sys-advdy/action',
          //   name: 'sys_advdy_action',
          //   component: () => import('@/views/sysAdvdy/action'),
          //   meta: {
          //     title: '数据源管理',
          //     keepAlive: true
          //   }
          // },
        ]
      },
      // visitors
      // settings
      {
        path: '/settings',
        name: 'settings',
        component: PageView,
        hideChildrenInMenu: true,
        meta: {
          title: '小程序装修',
          keepAlive: true,
          icon: 'setting'
        },
        redirect: '/settings/index',
        children: [
          {
            path: '/tool',
            name: 'gj_index',
            component: () => import('@/views/tool/Index'),
            meta: {
              title: '实用工具',
              keepAlive: true
            }
          }
          ,{
          path: '/settings/index',
          name: 'ui_index',
          component: () => import('@/views/uiSetting/Index'),
          meta: {
            title: 'UI装修',
            keepAlive: true
          }
        }]
      },
      // manage
      {
        path: '/manage',
        name: 'manage',
        component: PageView,
        meta: {
          title: '管理员及权限',
          keepAlive: true,
          icon: 'desktop'
        },
        redirect: '/manage/roles',
        children: [{
            path: '/manage/roles',
            name: 'Roles',
            component: () => import('@/views/admin/RoleList'),
            meta: {
              title: '角色列表',
              keepAlive: true
            }
          },
          {
            path: '/manage/admins',
            name: 'Admins',
            component: () => import('@/views/admin/AdminList'),
            meta: {
              title: '管理员列表',
              keepAlive: true
            }
          }
        ]
      },
      
      // Exception
      {
        path: '/exception',
        name: 'exception',
        component: RouteView,
        redirect: '/exception/404',
        meta: {
          title: '异常页',
          icon: 'warning',
          permission: ['exception']
        },
        hidden: true,
        children: [{
            path: '/exception/401',
            name: 'Exception401',
            component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/401'),
            meta: {
              title: '403',
              permission: ['exception']
            }
          },
          {
            path: '/exception/404',
            name: 'Exception404',
            component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404'),
            meta: {
              title: '404',
              permission: ['exception']
            }
          },
          {
            path: '/exception/500',
            name: 'Exception500',
            component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/500'),
            meta: {
              title: '500',
              permission: ['exception']
            }
          }
        ]
      },

    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [{
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [{
      path: 'login',
      name: 'login',
      component: () => import( /* webpackChunkName: "user" */ '@/views/user/Login')
    }]
  },
  {
    path: '*',
    redirect: '/exception/404'
  }
]
